package milktea.time;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;

@WebServlet("/manage/admin_index")
public class admin_time extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setContentType("text/html; charset=utf-8");
        resp.setIntHeader("Refresh",1);
        Date date = new Date();
        String realtime = date.toString();
        req.setAttribute("realtime",realtime);
        req.getRequestDispatcher("admin_index.jsp").forward(req, resp);
//        resp.sendRedirect("admin_index.jsp");

    }


}
